/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.stock.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

import java.util.List;

/**
 * 出库Entity
 * @author 出库
 * @version 2019-12-21
 */
public class OutOrderDetail extends DataEntity<OutOrderDetail> {
	
	private static final long serialVersionUID = 1L;
	private OutOrder order;		// 出库单id 父类
	private Woods woods;		// 物料id
	private ContainerDetail cid;		// 托盘id
	private String type;		// 货物种类
	private String name;		// 物料名称
	private int plannumber;		// 计划数量
	private String batch;		// 批次号
	private int factNumber;		// 实际数量
	private List<ContainerDetail> wls;

	public List<ContainerDetail> getWls() {
		return wls;
	}

	public void setWls(List<ContainerDetail> wls) {
		this.wls = wls;
	}

	public OutOrderDetail() {
		super();
	}

	public OutOrderDetail(String id){
		super(id);
	}

	public OutOrderDetail(OutOrder order){
		this.order = order;
	}

	@Length(min=0, max=32, message="出库单id长度必须介于 0 和 32 之间")
	public OutOrder getOrder() {
		return order;
	}

	public void setOrder(OutOrder order) {
		this.order = order;
	}
	
	public Woods getWoods() {
		return woods;
	}

	public void setWoods(Woods woods) {
		this.woods = woods;
	}

	public ContainerDetail getCid() {
		return cid;
	}

	public void setCid(ContainerDetail cid) {
		this.cid = cid;
	}
	
	@Length(min=0, max=255, message="货物种类长度必须介于 0 和 255 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=100, message="物料名称长度必须介于 0 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getPlannumber() {
		return plannumber;
	}

	public void setPlannumber(int plannumber) {
		this.plannumber = plannumber;
	}
	
	@Length(min=0, max=20, message="批次号长度必须介于 0 和 20 之间")
	public String getBatch() {
		return batch;
	}

	public void setBatch(String batch) {
		this.batch = batch;
	}

	public int getFactNumber() {
		return factNumber;
	}

	public void setFactNumber(int factNumber) {
		this.factNumber = factNumber;
	}
	
}